import { Component } from '@angular/core';
import {HttpService} from "../../service/http/http.service";
import {Router} from "@angular/router";

@Component({
  selector: 'app-main',
  templateUrl: './main.component.html',
  styleUrls: ['./main.component.scss']
})
export class MainComponent {
  isCollapsed = false;
  constructor(public http:HttpService,
              private router:Router) {

  }

  exit(){
    localStorage.removeItem("user");
    this.router.navigateByUrl('/login');
  }
}
